package com.seari.tunnel.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.seari.tunnel.entity.CorridorIn;
import com.seari.tunnel.entity.CorridorInParam;
import com.seari.tunnel.mapper.CorridorInMapper;
import com.seari.tunnel.service.IAgreementService;

@Service(IAgreementService.SERVICE_NAME)
public class AgreementServiceImpl implements IAgreementService{
	@Autowired
	CorridorInMapper corridorInMapper;
	
	@Override
	public List<CorridorIn> findAgreements() {
		
		return corridorInMapper.getAgreements();
	}

	@Override
	public List<CorridorIn> findExaminedComp() {
		
		return corridorInMapper.getExaminedComp();
	}

	@Override
	public List<CorridorInParam> findAgreementParams() {
		
		return corridorInMapper.getAgreementParams();
	}

	@Override
	public void updateAgreementFile(CorridorIn corridorIn) {
		corridorInMapper.updateAgreementFile(corridorIn);
		
	}

}
